<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('风险预警监控')" />
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <ul class="list-unstyled list-inline">
                <li class="text-center">
                    <span>
                        <button class="btn btn-primary dim btn-large-dim" type="button" onclick="showModal('dialog')"><i class="glyphicon glyphicon-blackboard"></i>
                        </button>
                        <h3>弹框监控</h3>
                   </span>
                </li>
                <li class="text-center">
                    <span>
                        <button class="btn btn-warning dim btn-large-dim" type="button" onclick="showModal('list')"><i class="glyphicon glyphicon-edit"></i>
                        </button>
                        <h3>列表监控</h3>
                   </span>
                </li>
            </ul>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    function showModal(queryFlag) {
        if(queryFlag == "dialog"){
            var url = ctx + "oms/paeaRiskItem/paeaRiskItemModel";
            var x=screen.availWidth;
            var y=screen.availHeight;
            window.showModalDialog(url,window,"dialogWidth=" + x + "px; dialogHeight=" + y + "px; help=no; status=no; scroll=yes; resizable=no;");
        }else{
            var url = ctx + "oms/paeaRiskItem/paeaRiskItem";
            $.modal.parentTab("预警处理", url);
        }
    }
</script>
</body>
</html>